package app;

/**
 * 
 * @author 116@lab0.net
 * 
 *         This class describes a single ball of the Hungarian rings puzzle. Balls are unmodifiable.
 * 
 */
public class Ball
{
    /**
     * Indicates the color of this ball.
     */
    private BallColor   ballColor;
    
    /**
     * A custom name for this ball. Used in toString();
     */
    private String      name;
    
    public Ball(BallColor ballColor, String name)
    {
        this.ballColor = ballColor;
        this.name = name;
    }
    
    public BallColor getBallColor()
    {
        return ballColor;
    }
    
    @Override
    public String toString()
    {
        return name;
    }
    
}
